Next | Prev | Up | Top | Contents | Index
Creating Multiple Profile Data Files
When you run a program using pc sampling, raw data is collected and saved in the profile data file mon.out. To collect profile data in several files, or to specify a different name for the profile data file, set the environment variable PROFDIR, using the appropriate method from Table 4-2.
Setting a PROFDIR Environment Variable
C shell and tcsh | Bourne shell and Korn shell |
---|
setenv PROFDIR dirname | PROFDIR=dirname; export PROFDIR |
Setting the environment variable puts the raw profile data of each invocation of progname in files named dirname/progname.mon.pid. (You must create a directory named dirname before you run the program.) pid is the process ID of the executing program; progname is the name of the program when invoked.
Next | Prev | Up | Top | Contents | Index